package com.wish.contract.service.impl;

import com.wish.contract.entity.TSfContract;
import com.wish.contract.mapper.TSfContractMapper;
import com.wish.contract.service.ITSfContractService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 高露雯-收房合同表  曹佳林 服务实现类
 * </p>
 *
 * @author cjl
 * @since 2022-03-26
 */
@Service
public class TSfContractServiceImpl extends ServiceImpl<TSfContractMapper, TSfContract> implements ITSfContractService {

    //修改原合同的续约状态
    @Override
    public void updateXyStatus(Long id) {
        TSfContract tSfContract = new TSfContract();
        tSfContract.setId(id);
        tSfContract.setXyStatus(true);
        getBaseMapper().updateById(tSfContract);
    }
}
